package com.ldu.service;

import java.util.List;

import com.ldu.dao.query.support.PageResult;
import com.ldu.pojo.Catelog;

/**
 * Created by lenovo on 2017/5/9.
 */
public interface CatelogService {

    public List<Catelog> getCatelogList();
    

    Catelog selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Catelog record);


    public Catelog getCatelogById(Long id);

    public int getCatelogNum();
    public PageResult<Catelog> getPageCatelog(int pageNum, int pageSize);

    public List<Catelog> getPageCatelogByIdOrName(Long id,String name,int pageNum, int pageSize);

    /**
     * <p> 删除分类 </p>
     * @param id
     * @return int
     * @throws
     * @author 皮皮 (pipi@maihaoche.com)
     * @date 2019/3/31 2:52 PM
     */
    int deleteCatelog(Long id);

    /**
     * <p> 添加分类 </p>
     * @param catelog
     * @return Boolean
     * @throws
     * @author 皮皮 (pipi@maihaoche.com)
     * @date 2019/3/31 4:14 PM
     */
    Boolean addCatelog(Catelog catelog) throws Exception;

}
